package com.xky.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class PageBean {
    private Long total; // 总记录数
    private List<Book> rows; // 数据列表

    public PageBean(long total, List<Book> result) {
        this.total = total;
        this.rows = result;
    }
}
